import {USER_LOGIN} from './actionTypes'

const defaultState = {
    user:{}
}


export default (state=defaultState,action) =>{
    let newState = JSON.parse(JSON.stringify(state))

    switch (action.type){
        case USER_LOGIN:
            newState.user = action.UserInformation
            break;
        default:
            break;
    }
    return newState;
}